﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template/Site_Main.Master" AutoEventWireup="true"
    CodeBehind="special_student_register.aspx.cs" Inherits="RegisterationSystem.Space_Education.special_student_register" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../Framework/Calendar.js" type="text/javascript"></script>
    <script src="../Framework/function.js" type="text/javascript"></script>
    <script type="text/javascript">
     <!--
     $(function () {
         //初始化隐藏层
         $('#plasschool').dialog({
             closed: true
         });
         $('#plastudentinfo').dialog({   
                closed: true
            });
                   if ($("#<%= hidhous.ClientID %>").val()!= 3) {
                       $("#labeldate").css('display', 'none');
                       $("#textdate").css('display', 'none');
                        $("#studentddlhouse").attr("colspan", "4");
                        $("#studentIDCardNumber").html("身份证号");
                    }
                    else { 
                        $("#labeldate").show();
                        $("#textdate").show();
                        $("#studentddlhouse").attr("colspan", "2");
                        $("#studentIDCardNumber").html("护照证号");
                    }
         var products = <%=ShcJson %>;


          $("#<%= txtHouseNumber.ClientID %>").val("_栋_单元").bind({
                blur: function () {
                    if ($(this).val() == "") {
                        $(this).val("_栋_单元");
                        $(this).css({ "color": "#999" });
                    }
                },
                focus: function () {
                    $(this).css({ "color": "#000" });
                    if ($(this).val() == "_栋_单元") {
                        $(this).val("");
                    }
                }
            });

            $("#<%= txtHouseCard.ClientID %>").val("如果没有请填无或合同号").bind({
                blur: function () {
                    if ($(this).val() == "") {
                        $(this).val("如果没有请填无或合同号");
                        $(this).css({ "color": "#999" });
                    }
                },
                focus: function () {
                    $(this).css({ "color": "#000" });
                    if ($(this).val() == "如果没有请填无或合同号") {
                        $(this).val("");
                    }
                }
            });


         //加载学校
             $("#ddlSchoolInfo").combobox({
                 url: "../SyncService/GetDataList.ashx?action=GetSchoolInfoList",
                 // url: "../SyncService/GetDataList.ashx?action=GetCommList&parentID=0",
                 valueField: 'id',
                 textField: 'name',
                 //加载后触发
                 onLoadSuccess: function () {
                     var xuexdata = $('#ddlSchoolInfo').combobox('getData');
                     if (xuexdata.length > 0) {
                         $("#ddlSchoolInfo").combobox('select', xuexdata[0].id);
                     }
                 },
                 //选择触发
                 onSelect: function (xuexdata) {
                     //学校编号
                     $("#<%= hidstuid.ClientID %>").val(xuexdata.id);
                 }
         });


         $('#ddlHouse').combobox({
             onSelect: function () {
                 //户口所在地
                 var housid = $('#ddlHouse').combobox("getValue");
                 $("#<%= hidhous.ClientID %>").val(housid);
                 if ($("#<%= hidhous.ClientID %>").val()!= 3) {
                        $("#labeldate").css('display', 'none');
                        $("#textdate").css('display', 'none');
                        $("#studentddlhouse").attr("colspan", "4");
                        $("#studentIDCardNumber").html("身份证号");
                    }
                    else {
                        $("#labeldate").show();
                        $("#textdate").show();
                        $("#studentddlhouse").attr("colspan", "2");
                        $("#studentIDCardNumber").html("护照证号");
                    }
                 //                 if ($('#ddlHouse').combobox("getValue") == "2" && $('#scommunity').combobox("getText") == "其他") {
                 //                     //弹层
                 //                     $('#plasschool').dialog({
                 //                         title: '请选择就读学校',
                 //                         width: 250,
                 //                         height: 150,
                 //                         closed: false,
                 //                         closable: false,
                 //                         cache: false,
                 //                         modal: true,
                 //                         collapsible: true,
                 //                         maximizable: false
                 //                     });
                 //                 }
             }
         });
         

         //初始化社区下拉菜单
         $("#pcommunity").combobox({
             url: "../SyncService/GetDataList.ashx?action=GetCommList&parentID=0",
             valueField: 'id',
             textField: 'name',
             //加载后触发
             onLoadSuccess: function () {
                 var sdata = $('#pcommunity').combobox('getData');
                 if (sdata.length > 0) {
                     $("#pcommunity").combobox('select', sdata[0].id);
                 }
             },
             //选择触发
             onSelect: function (sdata) {
             //片区ID赋值
                 $("#<%= pianid.ClientID %>").val(sdata.id);
                 //片区名称赋值
                 $("#<%= pianname.ClientID %>").val(sdata.name);
                 //社区ID赋值
                 $("#<%= hidsid.ClientID %>").val("0");
                 //社区名称赋值
                 $("#<%= hidsname.ClientID %>").val("");
                 //小区ID赋值
                 $("#<%= hidxid.ClientID %>").val("0");
                 //小区名称赋值
                 $("#<%= hidxname.ClientID %>").val("");
                 
                 //                 //进城务工弹层选择学校
                 //                 if ($('#ddlHouse').combobox("getValue") == "2" && $('#scommunity').combobox("getText") == "其他") {
                 //                     //弹层
                 //                     $('#plasschool').dialog({
                 //                         title: '请选择就读学校',
                 //                         width: 250,
                 //                         height: 150,
                 //                         closed: false,
                 //                         closable: false,
                 //                         cache: false,
                 //                         modal: true,
                 //                         collapsible: true,
                 //                         maximizable: false
                 //                     });
                 //                 }
                 //加载小区
                 $("#scommunity").combobox({
                     url: "../SyncService/GetDataList.ashx?action=GetCommList&parentID=" + sdata.id,
                     valueField: 'id',
                     textField: 'name',
                     //加载后触发
                     onLoadSuccess: function () {
                         var xdata = $('#scommunity').combobox('getData');
                         if (xdata.length > 0) {
                             $("#scommunity").combobox('select', xdata[0].id);
                         }
                     },
                     //选择触发
                     onSelect: function (xdata) {
                        //社区ID赋值
                          $("#<%= hidsid.ClientID %>").val(xdata.id);
                          //社区名称赋值
                          $("#<%= hidsname.ClientID %>").val(xdata.name);
                          //小区ID赋值
                          $("#<%= hidxid.ClientID %>").val("0");
                          //小区名称赋值
                          $("#<%= hidxname.ClientID %>").val("");
                          //加载小区
                                           $("#xcommunity").combobox({
                                               url: "../SyncService/GetDataList.ashx?action=GetCommList&parentID=" + xdata.id,
                                               valueField: 'id',
                                               textField: 'name',
                                               //加载后触发
                                               onLoadSuccess: function () {
                                                   var xdata = $('#xcommunity').combobox('getData');
                                                   if (xdata.length > 0) {
                                                       $("#xcommunity").combobox('select', xdata[0].id);
                                                   }
                                               },
                                               //选择触发
                                               onSelect: function (xdata) {
                                                   //小区ID赋值
                                                   $("#<%= hidxid.ClientID %>").val(xdata.id);
                                                   //小区名称赋值
                                                   $("#<%= hidxname.ClientID %>").val(xdata.name);
                                                   //学校编号
                                                   $("#<%= hidstuid.ClientID %>").val(xdata.sclid);
                                                   if ($('#xcommunity').combobox("getText") == "滨湖小区") {
                                                 $("#txt22").show();
                                                    $("#txt11").show();
                                                  }
                                                     else {
                                                               $("#txt22").css('display', 'none'); $("#txt11").css('display', 'none');
                                                       }

                                               }
                                           })                        
                     }
                 })
             }
         });
         //初始化企业用户数据列表控件
         $("#dg").datagrid({
             idField: "id",      //标识字段,主键
             url: "../SyncService/GetDataList.ashx?action=getundistributedstulist",
             queryParams: { "where": "1=1", "typeid": "6" },
             pagination: true,   //是否开启分页
             rownumbers: true,   //行号
             pageSize: 10,
             pageNumber: 1,
             columns: [[
                            { field: 'ck', checkbox: true },
                            { field: 'schid', title: '所属学校 ', width: 120, align: 'center',
                                formatter: function (value) {
                                    for (var i = 0; i < products.length; i++) {
                                        if (products[i].id == value) return products[i].name;
                                    }
                                    return "暂无学校";
                                }
                            },
                            { field: 'truename', title: '学生姓名', width: 73.5, align: 'center' },
                            { field: 'sex', title: '性别', width: 60, align: 'center', formatter: function (value, row) {
                                if (value) {
                                    return "女";
                                } else {
                                    return "男";
                                }
                            }
                            },
                            { field: 'idcardnumber', title: '证件号(身份证/护照)', width: 135, align: 'center' },
                            { field: 'houseareaid', title: '户口所在地', width: 150, align: 'center', formatter: function (value, row) {
                                switch (value) {
                                    case "0":
                                        return "武汉经济技术开发区（汉南区）";
                                        break;
                                    case "1":
                                        return "市内其它区";
                                        break;
                                    case "2":
                                        return "省内市外、外省外市";
                                    case "3":
                                        return "外籍(含港澳台)";
                                        break;
                                }
                            }
                            },
                            { field: 'scommname', title: '住房社区', width: 120, align: 'center' },
                            { field: 'xcommname', title: '住房小区', width: 120, align: 'center' },
                            { field: 'level', title: '生源类型', width: 60, align: 'center', formatter: function (value, row) {
                                switch (value) {
                                    case "0":
                                        return "A";
                                        break;
                                    case "1":
                                        return "B";
                                        break;
                                    case "2":
                                        return "C";
                                    case "3":
                                        return "D";
                                        break;
                                }
                            }
                            },
                            { field: 'id', title: '查看详细信息', width: 115, align: 'center', formatter: function (value, row) {
                                return "<a href='javascript:void(0)'  onclick='GetByStudentInfo(" + value + ");'>查看详细信息</a>";
                            }
                            }
                         ]]
         })
     });
     //-->

     //验证
     function submitForm() {
         //alert("社区ID：" + $("#<%= hidsid.ClientID %>").val() + "社区名称：" + $("#<%= hidsname.ClientID %>").val() + "小区ID：" + $("#<%= hidxid.ClientID %>").val() + "小区名称：" + $("#<%= hidxname.ClientID %>").val() + "学校ID:" + $("#<%= hidstuid.ClientID %>").val());
         $("#<%= hiddate.ClientID %>").val($("#dtBirthday").val());
         //验证必填项
         if (!$("#aspnetForm").form("validate")) {
             return false;
         }
         if ($("#txt22").is(":visible")) {
            var tst = $("#<%= txt.ClientID %>").val();
             if (tst == "")
             {
                 alert("请输入门栋号！");
             return false;
             }
         }
         //验证门牌号和房产证 是否必填
         var ddlhous = $("#ddlHouse").combobox("getValue");
         var scommunity = $("#scommunity").combobox("getText");
         if ((ddlhous != "0" && scommunity != "其他") || (ddlhous != "1" && scommunity != "其他")) {
             if ($("#<%= txtHouseNumber.ClientID %>").val() == "" || $("#<%= txtHouseCard.ClientID %>").val() == "" || $("#<%= txtHouseNumber.ClientID %>").val() == "_栋_单元" || $("#<%= txtHouseCard.ClientID %>").val() == "如果没有请填无或合同号") {
                 alert("请输入门牌号和房产证!");
                 return false;
             }
         }
         var studenthous=$("#<%= hidhous.ClientID %>").val();
         if(studenthous!="3")
         {
         //验证身份证格式是否正确
         var cid = $("#<%= txtIDCardNumber.ClientID %>").val();
         var result = isIdCardNo(cid);
         if (result != cid.toUpperCase()) {
             if (!result[0]) {
                 alert(result[1]);
                 return false;
             }
         }
        }
        else
        {
        if ($("#dtBirthday").val() == "") {
                 alert("出生日期不能为空！");
                 return (false);
             }
             if (!checkIsDate($("#dtBirthday").val())) {
                 alert("出生日期格式不正确！");
                 return (false);
             }
        }
         var r = confirm("信息真实准确请点击“确定”，否则点击“取消”返回到登记页面");
         if (r == false) {
             return false;
         }
            if ($("#<%= txtHouseNumber.ClientID %>").val() == "_栋_单元") {
                $("#<%= txtHouseNumber.ClientID %>").val("");
            }

            if ($("#<%= txtHouseCard.ClientID %>").val() == "如果没有请填无或合同号") {
                $("#<%= txtHouseCard.ClientID %>").val("");
            }
         return true;
     }
     //弹出公告层
     function selnoice(id) {
         $.post("../SyncService/GetDataList.ashx",
                { "action": "GetNoticeByID", "id": id },
                function (cStr) {
                    var stdInfo = eval('(' + cStr + ')');
                    $("#txttilt").text(stdInfo.tile); //标题
                    $("#txtcount").text(stdInfo.content); //内容
                },
                "text");
         //弹层
         $('#plastudentinfo').dialog({
             title: '公告信息',
             width: 400,
             height: 200,
             closed: false,
             cache: false,
             modal: true,
             collapsible: true,
             maximizable: false
         });
     }

     //弹出学生详细信息
     function GetByStudentInfo(stdID) {
         $.post("../SyncService/GetDataList.ashx",
                { "action": "GetStudentByID", "id": stdID },
                function (cStr) {
                    var stdInfo = eval('(' + cStr + ')');
                    $("#<%= hidstudentid.ClientID %>").val(stdID);
                    $("#spanname").text(stdInfo.name); //姓名
                    $("#spansex").text(stdInfo.sex); //性别
                    $("#spanbirthday").text(stdInfo.birthday); //出生年月
                    $("#spanidcardnumber").text(stdInfo.idcardnumber); //学生身份证
                   // $("#spanhobby").text(stdInfo.hobby); //兴趣爱好
                    $("#spanfirstguardianname").text(stdInfo.firstguardianname); //第一监护人
                    $("#spanfirstguardianunit").text(stdInfo.firstguardianunit); //工作单位
                    $("#spanfirstguardianphone").text(stdInfo.firstguardianphone); //联系电话
                    $("#spansecguardianname").text(stdInfo.secguardianname); //第二监护人
                    $("#spansecguardianunit").text(stdInfo.secguardianunit); //工作单位
                    $("#spansecguardianphone").text(stdInfo.secguardianphone); //联系电话
                    switch (stdInfo.houseareaid) {
                        case "0":
                            $("#spanhouseareaid").text("武汉经济技术开发区（汉南区）"); //户口所在地
                            break;
                        case "1":
                            $("#spanhouseareaid").text("市内其它区"); //户口所在地
                            break;
                        case "2":
                            $("#spanhouseareaid").text("省内市外、外省外市"); //户口所在地
                            break;
                        case "3":
                            $("#spanhouseareaid").text("外籍(含港澳台)"); //户口所在地
                            break;
                    }
                    $("#spanpcommname").text(stdInfo.pcommname);
                    $("#spanscommname").text(stdInfo.scommname); //住房社区
                    $("#spanxcommname").text(stdInfo.xcommname); //住房小区
                    $("#spanhousenumber").text(stdInfo.housenumber); //门牌号
                    $("#spanhousecard").text(stdInfo.housecard); //房产号
                    $("#spanfirstrelationship").text(stdInfo.firstrelationship); //与学生关系
                    $("#spansecrelationship").text(stdInfo.secrelationship); //与学生关系
                },
                "text");
         //弹层
         $('#plastudentinfo').dialog({
             title: '学生信息',
             width: 600,
             height: 370,
             closed: false,
             cache: false,
             modal: true,
             collapsible: true,
             maximizable: false
         });
     }
 //重置学生用户密码
        function UpdStudentPswdReset(StudentPswd) {
            $.messager.confirm('提示', '确认重置密码？', function (r) {
                if (r) {
                    $.post(location.href, { "action": "pswdreset", "id": $("#<%= hidstudentid.ClientID %>").val(), "StudentPswd": StudentPswd }, function (data) {
                        $.messager.alert("消息提示", "重置成功！");
                        $('#dg').datagrid('reload');
                    });
                }
            });
        }


        
        //把符合条件选定的数据导出excel
        function derive_excel() {
            var mess = "";
            var altmess = "";
                mess = "确认导出excel？";
                altmess = "导出excel成功!"
            //id集合
            var ids = "";
            //获取选择集合
            var rows = $('#dg').datagrid('getSelections');
            if (rows.length == 0) {
                alert("请选择行");
                return false;
            }
            //遍历选择行
            for (var i = 0; i < rows.length; i++) {
                ids += rows[i].id + ",";
            }
             $.messager.confirm('提示', mess, function (r) {
                if (r) {
                    $.ajax({
                        type: "POST",
                        url: "../SyncService/EduExcelHelper.ashx?type=derive_excelList&id=" + ids,
                        //                data: { "type": "loadReport", "typeid": "0", "where": "" + where + "" },
                        datatype: "text",
                        cache: false,
                        success: function (data) {
                            if (data == "0") {
                                alert("导出excel失败");
                            }
                            else {
                                try {
                                    window.location = data;
                                } catch (e) {

                                }
                            }
                        }
                    });
                }
            });
//            $.messager.confirm('提示', mess, function (r) {
//                if (r) {
//                    $.post(location.href, { "action": "derive_excelList", "id": ids }, function (data) {
//                        window.location = data;
//                    });

//                }
//            });
}

//把符合条件的所以数据导出excel
function derive_excelAll() {
   var mess = "";
   mess = "确认导出excel？";
    var where ="1=1";

    $.messager.confirm('提示', mess, function (r) {
                if (r) {
                    $.ajax({
                        type: "POST",
                        url: "../SyncService/EduExcelHelper.ashx?type=derive_excelListAll&typeid=6&where=" + where,
                        //                data: { "type": "loadReport", "typeid": "0", "where": "" + where + "" },
                        datatype: "text",
                        cache: false,
                        success: function (data) {
                            if (data == "0") {
                                alert("导出excel失败");
                            }
                            else {
                                try {
                                    window.location = data;
                                } catch (e) {

                                }
                            }
                        }
                    });
                }
            });
//            $.messager.confirm('提示', mess, function (r) {
//        if (r) {
//            $.post(location.href, { "action": "derive_excelListAll", "where": where,"typeid":"6" }, function (data) {
//                window.location = data;
//            });

//        }
//    });
}
function yanz() {
         var tst = $("#<%= txt.ClientID %>").val().toString();
         if (!isNaN(tst)) {
             //alert("请填写数字！");
         }
         else {
             alert("请填写数字！");
             $("#<%= txt.ClientID %>").val("");
         }
         
     }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Place_Local" runat="server">
    <div class="localTitle">
        <a>特殊人才登记信息代录</a>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:HiddenField ID="radio" runat="server" Value="0" />


<!--片区编号-->
    <asp:HiddenField ID="pianid" runat="server" Value="0" />
    <!--片区名称-->
    <asp:HiddenField ID="pianname" runat="server" Value="" />

    <!--社区编号-->
    <asp:HiddenField ID="hidsid" runat="server" Value="0" />
    <!--社区名称-->
    <asp:HiddenField ID="hidsname" runat="server" Value="" />
    <!--小区编号-->
    <asp:HiddenField ID="hidxid" runat="server" Value="0" />
    <!--小区名称-->
    <asp:HiddenField ID="hidxname" runat="server" Value="" />
    <!--所属学校-->
    <asp:HiddenField ID="hidstuid" runat="server" Value="0" />
    <!--所属学生-->
    <asp:HiddenField ID="hidstudentid" runat="server" Value="0" />
    <!--户口所在地-->
    <asp:HiddenField ID="hidhous" runat="server" Value="0" />
    <!--是否接受调剂-->
    <asp:HiddenField ID="hidAdjustment" runat="server" Value="0" />
    <!--外籍学生出生日期-->
    <asp:HiddenField ID="hiddate" runat="server" Value="0" />
    <div class="loadheight">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td bgcolor="#FFFFFF">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td>
                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                </table>
                            </td>
                        </tr>
                    </table>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td class="cen_R_top cen_foat">
                                <strong>特殊人才登记信息录入</strong>
                            </td>
                        </tr>
                        <tr>
                            <td class="cen_R_dh">
                                <strong>学生信息</strong>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div style="margin-top: 5px;">
                                </div>
                                <table width="956px" border="0" cellpadding="3" cellspacing="1" bgcolor="#dddfe0">
                                    <tr>
                                        <td width="100" height="20" align="center" bgcolor="#FFFFFF">
                                            学生姓名
                                        </td>
                                        <td width="180" bgcolor="#FFFFFF">
                                            <input type="text" id="txtname" style="width: 130px;" class="easyui-validatebox"
                                                runat="server" data-options="required:true" maxlength="20" />
                                        </td>
                                        <td width="65" align="center" bgcolor="#FFFFFF">
                                            性别
                                        </td>
                                        <td width="60" align="left" bgcolor="#FFFFFF" colspan="2">
                                            <asp:DropDownList ID="ddlsex" runat="server" class="easyui-combobox" data-options="required:true,editable:false">
                                                <asp:ListItem Value="0">男</asp:ListItem>
                                                <asp:ListItem Value="1">女</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td width="65" align="center" bgcolor="#FFFFFF">
                                            选择学校
                                        </td>
                                        <td width="60" align="left" bgcolor="#FFFFFF">
                                            <select id="ddlSchoolInfo" class="easyui-combobox" data-options="required:true,editable:false"
                                                style="width: 125px;">
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="20" align="center" bgcolor="#FFFFFF" id="studentIDCardNumber">
                                            证件号(身份证/护照)
                                        </td>
                                        <td bgcolor="#FFFFFF">
                                            <input type="text" id="txtIDCardNumber" runat="server" style="width: 175px;" maxlength="18"
                                                class="easyui-validatebox" data-options="required:true" />
                                        </td>
                                        <td align="center" bgcolor="#FFFFFF" style="width: 95px">
                                            学生户口所在地
                                        </td>
                                        <td colspan="2" bgcolor="#FFFFFF" id="studentddlhouse">
                                            <select id="ddlHouse" class="easyui-combobox" data-options="required:true,editable:false">
                                                <option value="0">武汉经济技术开发区（汉南区）</option>
                                                <option value="1">市内其它区</option>
                                                <option value="2">省内市外、外省外市</option>
                                                <option value="3">外籍(含港澳台)</option>
                                            </select>
                                        </td>
                                        <td align="center" bgcolor="#FFFFFF" id="labeldate">
                                            出生日期
                                        </td>
                                        <td align="left" bgcolor="#FFFFFF" id="textdate">
                                            <span>
                                                <input name="dtBirthday" type="text" id="dtBirthday" size="10" maxlength="10" onclick="new Calendar().show(this);"
                                                    readonly="readonly" /></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="20" align="center" bgcolor="#FFFFFF">
                                            房产所在片区
                                        </td>
                                        <td colspan="6" bgcolor="#FFFFFF">
                                        <select id="pcommunity" class="easyui-combobox" data-options="required:true,editable:false"
                                                style="width: 65px;">
                                            </select>社区
                                            <select id="scommunity" class="easyui-combobox" data-options="required:true,editable:false"
                                                style="width: 110px;">
                                            </select>
                                            小区
                                            <select id="xcommunity" class="easyui-combobox" data-options="editable:false" style="width: 90px;">
                                            </select>
                                            门牌号
                                            <input type="text" id="txtHouseNumber" class="easyui-validatebox" runat="server"
                                                maxlength="100" style="width: 70px; color: #999;" />
                                                <span id="txt11" style="display:none;">门栋号</span>
                                                             <span id="txt22"  style="display:none;">
                                                             <input type="text" name="txt" id="txt" class="easyui-validatebox" runat="server" maxlength="100" style="width: 30px; color:#999;" onblur="yanz()" />
                                                             
                                                             </span>
 <select id="radstinfot">
                                    <option value="0">自有房产</option>
                                    <option value="1">租赁房</option>
                                    
                                </select>
                                                <%--<input id="radstinfot" name="stinfo" type="radio" value="0" checked="checked"
                                    class="tccinput" />自有房产
                                    <input id="radstinfow" name="stinfo" type="radio" value="1"
                                    class="tccinput" />租赁房--%>
                                            房产证号
                                            <input type="text" id="txtHouseCard" class="easyui-validatebox" runat="server" maxlength="100"
                                                style="width: 142.5px; color: #999;" />
                                        </td>
                                    </tr>
                                    <%--           <tr>
                                        <td height="20" align="center" bgcolor="#FFFFFF">
                                            兴趣爱好
                                        </td>
                                        <td colspan="6" bgcolor="#FFFFFF">
                                            <textarea id="txtHouseAreaInfo" style="width: 93%;" rows="3" runat="server"></textarea>
                                        </td>
                                    </tr>--%>
                                </table>
                                <div style="margin-top: 5px">
                                </div>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td class="cen_R_dh">
                                            <strong>监护人（家长）信息</strong>
                                        </td>
                                    </tr>
                                </table>
                                <div style="margin-top: 5px">
                                </div>
                                <table width="756px" border="0" cellspacing="1" cellpadding="3" bgcolor="#dddfe0">
                                    <tr>
                                        <td width="100" bgcolor="#FFFFFF">
                                            &nbsp;
                                        </td>
                                        <td width="120" align="center" bgcolor="#FFFFFF">
                                            姓名
                                        </td>
                                        <td width="120" align="center" bgcolor="#FFFFFF">
                                            关系
                                        </td>
                                        <td width="120" align="center" bgcolor="#FFFFFF">
                                            工作单位
                                        </td>
                                        <td width="130" align="center" bgcolor="#FFFFFF">
                                            联系电话
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" bgcolor="#FFFFFF">
                                            第一监护人
                                        </td>
                                        <td align="center" bgcolor="#FFFFFF">
                                            <input type="text" id="txtFirstGuardianName" style="width: 100px;" class="easyui-validatebox "
                                                runat="server" data-options="required:true" maxlength="10" />
                                        </td>
                                        <td align="center" bgcolor="#FFFFFF">
                                            <input type="text" id="txtFirstRelationship" style="width: 100px;" class="easyui-validatebox "
                                                runat="server" data-options="required:true" maxlength="10" />
                                        </td>
                                        <td align="center" bgcolor="#FFFFFF">
                                            <input type="text" id="txtFirstGuardianUnit" style="width: 180px;" runat="server"
                                                data-options="required:true" maxlength="100" />
                                        </td>
                                        <td align="center" bgcolor="#FFFFFF">
                                            <input type="text" id="txtFirstGuardianPhone" style="width: 100;" class="easyui-numberbox "
                                                runat="server" data-options="required:true,validType:'mobile'" maxlength="11" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" bgcolor="#FFFFFF">
                                            第二监护人
                                        </td>
                                        <td align="center" bgcolor="#FFFFFF">
                                            <input type="text" id="txtSecGuardianName" style="width: 100px;" maxlength="10" runat="server" />
                                        </td>
                                        <td align="center" bgcolor="#FFFFFF">
                                            <input type="text" id="txtSecRelationship" style="width: 100px;" maxlength="10" runat="server" />
                                        </td>
                                        <td align="center" bgcolor="#FFFFFF">
                                            <input type="text" id="txtSecGuardianUnit" style="width: 180px;" maxlength="100"
                                                runat="server" />
                                        </td>
                                        <td align="center" bgcolor="#FFFFFF">
                                            <input type="text" id="txtSecGuardianPhone" style="width: 100;" class="easyui-numberbox"
                                                runat="server" maxlength="11" data-options="validType:'mobile'" />
                                        </td>
                                    </tr>
                                </table>
                                <table width="756px" height="17" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td height="60" align="center">
                                            <asp:Button ID="btnadd" runat="server" class="anniu_big" Text="登记信息提交" OnClick="btnadd_Click"
                                                OnClientClick="return submitForm()" />
                                            <input id="Reset1" class="anniu" type="reset" value="重置" />
                                        </td>
                                    </tr>
                                </table>
                                <div style="height: 1px;">
                                </div>
                                <table width="100%" border="0" cellspacing="0" cellpadding="1">
                                    <tr>
                                        <td class="cen_R_dh">
                                            <strong>特殊人才学生列表</strong>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <!-- 创建数据列表控件 -->
                                            <table id="dg" style="width: 1026px">
                                            </table>
                                            <div style="margin-top: 10px;">
                                            </div>
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td align="left">
                                                        <input type="button" name="button1" id="button2" value="选定导出Excel" class="anniu_big"
                                                            width="73px" height="23px" onclick="derive_excel();" />
                                                        <input type="button" name="button1" id="button3" value="全部导出Excel" class="anniu_big"
                                                            height="23px" onclick="derive_excelAll();" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                                <!--弹出学生详细信息-->
                                <div id="plastudentinfo" class="easyui-dialog tcc_M">
                                    <div class="tcc_div" style="margin-left: 20px;">
                                        <ul>
                                            <li class="tcc_BT">学生详细信息</li>
                                            <li>姓名：<span id="spanname"></span></li>
                                            <li>性别：<span id="spansex"></span></li>
                                            <li>证件号(身份证/护照)：<span id="spanidcardnumber"></span>&nbsp;<a href='javascript:void(0)'
                                                onclick='UpdStudentPswdReset(123456);' style="color: #990000">密码重置</a></li>
                                            <li>出生年月：<span id="spanbirthday"></span></li>
                                            <li>户口所在地：<span id="spanhouseareaid"></span></li>
                                            <li>住房片区：<span id="spanpcommname"></span></li>
                                            <li>住房社区：<span id="spanscommname"></span></li>
                                            <li>住房小区：<span id="spanxcommname"></span></li>
                                            <li>门牌号：<span id="spanhousenumber"></span></li>
                                            <li>房产证号：<span id="spanhousecard"></span></li>
                                            <%--  <li>兴趣爱好：<span id="spanhobby"></span></li>--%>
                                        </ul>
                                    </div>
                                    <div class="tcc_div" style="float: right">
                                        <ul>
                                            <li class="tcc_BT">监护人信息</li>
                                            <li>第一监护人：<span id="spanfirstguardianname"></span></li>
                                            <li>与学生关系：<span id="spanfirstrelationship"></span></li>
                                            <li>工作单位：<span id="spanfirstguardianunit"></span></li>
                                            <li>联系电话：<span id="spanfirstguardianphone"></span></li>
                                            <li>&nbsp;</li>
                                            <li>第二监护人：<span id="spansecguardianname"></span></li>
                                            <li>与学生关系：<span id="spansecrelationship"></span></li>
                                            <li>工作单位：<span id="spansecguardianunit"></span></li>
                                            <li>联系电话：<span id="spansecguardianphone"></span></li>
                                        </ul>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
